
import apiHelper from './apiHelper';

class addPassCheckService {
	//请求 ：添加通行证
	addPass(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/en/edit`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 :验证通行证
	verification(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/en/vali`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 ：删除通行证
	deletePass(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/en/dl`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

	//请求 ：查询通行证
	queryPass(data) {
		let requestParam = {
			url: `${apiHelper.baseApiUrl}emsc-partner/b/en/get`,
			data: {
				method: 'post',
				body: data
			}
		};
		return apiHelper.fetch(requestParam);
	}

}
// 实例化后再导出
export default new addPassCheckService()